package com.example.houseitemmanagebackend.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 物品视图对象
 */
@Data
public class ItemVO {

    private Integer id;

    private String name;

    private Integer categoryId;

    private String categoryName;

    private Integer locationId;

    private String locationName;

    private String specificLocation;

    private Integer quantity;

    private Integer isConsumable;

    private BigDecimal price;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate purchaseDate;

    private String purchaseChannel;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate expiryDate;

    private String status;

    private String statusLabel;

    private String notes;

    private Integer iconId;

    private String iconName;

    private String brand;

    private String specification;

    private Integer warranty;

    private BigDecimal rating;

    private Integer isFavorite;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}